Spread Windows Forms 6.0 Product Documentation
AddRange(SheetView[]) Method
See Also  Example Support Options
FarPoint.Win.Spread Assembly > FarPoint.Win.Spread Namespace > SheetViewCollection Class > AddRange Method : AddRange(SheetView[]) Method


sheets
array of SheetView objects

Glossary Item Box

Adds an array of SheetView objects to the collection.

Syntax

Visual Basic (Declaration) 
Public Overloads Sub AddRange( _
   ByVal sheets() As SheetView _
) 
Visual Basic (Usage)Copy Code
Dim instance As SheetViewCollection
Dim sheets() As SheetView
 
instance.AddRange(sheets)
C# 
public void AddRange( 
   SheetView[] sheets
)

Parameters

sheets
array of SheetView objects

Example

This example adds a range of sheets to the collection.
C#Copy Code
FarPoint.Win.Spread.SheetView[] s = {new FarPoint.Win.Spread.SheetView("Sheet1"),
new FarPoint.Win.Spread.SheetView("Sheet2"), new FarPoint.Win.Spread.SheetView("Sheet3")};
fpSpread1.Sheets.AddRange(s);
Visual BasicCopy Code
Dim s As FarPoint.Win.Spread.SheetView() = {New FarPoint.Win.Spread.SheetView("Sheet1"), 
New FarPoint.Win.Spread.SheetView("Sheet2"), New FarPoint.Win.Spread.SheetView("Sheet3")}
FpSpread1.Sheets.AddRange(s)

Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

© 2002-2012 ComponentOne, a division of GrapeCity. All Rights Reserved.